home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5467 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: xs1.xs4all.nl!marcone
  2. From: marcone@xs1.xs4all.nl (Marco Nelissen)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: FindTask() VERY IMPORTANT
  5. Date: 15 Mar 1996 08:25:04 GMT
  6. Organization: XS4ALL Internet
  7. Message-ID: <4ib9h0$i23@news.xs4all.nl>
  8. References: <4hp3cv$cqe@serpens.rhein.de> <4i64pk$ia1@news.xs4all.nl> <4i74pb$b4f@serpens.rhein.de>
  9. NNTP-Posting-Host: xs1.xs4all.nl
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Michael van Elst (mlelstv@serpens.rhein.de) wrote:
  13. : I can only repeat myself:
  14.  
  15. So I've noticed...
  16.  
  17. : If there is a system function for a task then use it instead of peeking
  18. : data structures.
  19.  
  20. SysBase->ThisTask is _R_E_A_D_A_B_L_E_, and always has been. Why shouldn't
  21. I use it? If this suddenly fails on a new OS, so be it, but it won't be my
  22. fault.
  23.  
  24. : This has a reason as the function interface allows to change the data
  25. : structures, it also allows access policies. Is it too difficult to
  26. : grasp for you ?
  27.  
  28. Is it too difficult for you to understand that until now SysBase->ThisTask
  29. has always been documented as being readble? It is perfectly legal to
  30. use it. Show me where it says I cannot use this field...
  31.  
  32. : Peeking ThisTask serves only two purposes: to spare the few cycles for
  33. : the function call at the cost of compatibility and to show how c00l you
  34. : are because you know what the system does. Is it that what you want ?
  35.  
  36. There is nothing 'cool' about using a system structure if that particular
  37. structure is documented readable...
  38. The compatibility problem you are referring to should be non-existant. If
  39. there is a problem, it is to blame on whoever created the new OS, since they
  40. deliberately introduced a compatibility-problem.
  41.  
  42. Marco
  43.